#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QtGui/QListWidget>
#include <QtGui/QStackedWidget>
#include <QtGui/QWidget>


class MapWidget;
class SearchWidget;

class MainWidget : public QWidget
{
    Q_OBJECT
public:
    MainWidget(QWidget *parent = 0);
    ~MainWidget();
//    MapWidget *m_map;
    void loadFile(const QString &fileName);
    void centerMap(qreal lon, qreal lat);

signals:
    void close();

private slots:

    void showMap();
    void showMap(qreal lon, qreal lat);
//    void centerMap();

private:
//    qreal m_latitude, m_longitude;
    QStackedWidget *m_stack;
    MapWidget *m_map;
    SearchWidget *m_search;

};

#endif // MAINWIDGET_H
